#ifndef __BS_APP_CONF_H__
#define __BS_APP_CONF_H__

// MHz
#define ICE_FREQUENCY                   10
#define ICE_PERIOD                      240/(ICE_FREQUENCY)   // 24-->10M， 
#define TIMER1_PWM_DUTY                 (ICE_PERIOD/2-1)

// DMA buffer
#define BS_CHUNK_SIZE                    512*8
#define PWM_SINGLE_PULSE_MODE

#define WRITE_TIME_OUT                   1000
#define READ_TIME_OUT                    1000
#define LINK_TIME_OUT                    5000

// 打印口
#define WRITER_PRINT_COM                 UART6

// 按键数量
#define USER_LEDS_NUMBER                  2

// 文件缓冲区大小
#define FILE_REAUEST_QUEUE_LENGTH         6

// 文件类型
#define FS_TYPE                           1


// 内部falsh分配
#define INNR_UPDATE_REGION_STADDR         (0x08108000)

#define INNR_IMAGE_REGION_STADDR          (0x08100000)
#define INNR_IMAGE_BAKEUP_STADDR          (0x08104000)
#define INNR_IMAGE_JOURNAL_STADDR         (0x08100000+4096)
#define INNER_IMAGE_JOURNAL_SIZE          (4096)

/* sector size */
#define UPDATE_REGION_PAGE_SIZE           0x00004000    /* 16kB */
#define UPDATE_REGION_ENTRY_SIZE          16

#define BS_INNR_JOURNAL
// 支持的镜像文件数量
#define MAX_IMAGE_FILES_NR                16


#define LCD_EN                            0


#endif
